const path = require("path");
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  configureWebpack: {
    resolve: {
      // 设置路径别名
      alias: {
        "@": path.resolve("src"),
        "@public": path.resolve("public"),
        "@img": path.resolve("src/assets/images"),
        "@js": path.resolve("src/assets/scripts"),
        "@css": path.resolve("src/assets/styles"),
        "@views": path.resolve("src/views"),
      },
    },
  },
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          javascriptEnabled: true,
        },
      },
    },
  },
});
